package haois.module.navigate.dao.mapper;

import haois.module.navigate.daomain.Navigate;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by RuiHaoZ on 2018/4/20 10:55
 */
@Repository
public interface NavigateMapper {

    void addNavi(@Param("navi") Navigate navigate);

    void addUrl(@Param("navi") Navigate navigate);

    void updateNavi(@Param("navi") Navigate navigate);

    void updateUrl(@Param("navi") Navigate navigate);

    List<Map<String, Object>> getUrlByNaviId(@Param("id") Integer id);

    List<Map<String, Object>> getNaviByMan(@Param("id") String id);

    List<Map<String, Object>> getNaviList();

    List<Map<String, Object>> getUrlList();

    Map<String, Object> getUrl(@Param("id") Integer id);

    Map<String, Object> getNavi(@Param("id") Integer id);

    void deleteNavi(@Param("id") Integer id);

    void deleteUrl(@Param("id") Integer id);

    void deleteUrlByNaviId(@Param("id") Integer id);

    Integer getIdByMark(@Param("mark") String mark);

}
